//  房价设置列表
export function getRoomPriceList (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/room/list',
    data: data
  })
}


// 修改新增
export function updateRoomPrice (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/room/set',
    data: data
  })
}

// 删除启用禁用
export function deleteRoomPrice (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/room/onoff',
    data: data
  })
}

//  房型
export function getRoomTypeList (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/room/type',
    data:data
  })
}

// 编辑获取详情数据 
export function getRoomDetail (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/room/info',
    data:data
  })
}
/*************协议房价设置****************** */

//  协议房价设置列表
export function getAgreementList (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/agreement/list',
    data:data
  })
}

// 新增协议房价

export function updateAgreementPrice (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/agreement/set',
    data:data
  })
}

//  启用/禁用

export function deleteAgreementPrice (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/agreement/onoff',
    data:data
  })
}

//  查看详情
export function getAgreementDetail (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/agreement/info',
    data:data
  })
}
/**********会议价设置***************/ 
export function getMeetingList (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/meeting/list',
    data:data
  })
}

//  会议价设置(新增/修改)

export function updateMeetingPrice (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/meeting/set',
    data:data
  })
}

//  启用/禁用 
export function deleteMeetingPrice (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/meeting/onoff',
    data:data
  })
}

// 会议室列表
export function getMeetingTypeList (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/meeting/type',
    data:data
  })
}

//  查看详情
export function getMeetingDetail (data) {
  return window.fetch({
    method: 'POST',
    url: '/price/meeting/info',
    data:data
  })
}

//  查看房价日志
export function getRoomPriceLog (id) {
  return window.fetch({
    method: 'POST',
    url: '/price/room/log',
    data:id
  })
}
// 查看协议房价日志
export function getAgreementLog (id) {
  return window.fetch({
    method: 'POST',
    url: '/price/agreement/log',
    data:id
  })
}

//  查看会议价日志
export function getMeetingLog (id) {
  return window.fetch({
    method: 'POST',
    url: '/price/meeting/log',
    data:id
  })
}








